<?php
namespace app\admin\model;

use think\Model;

class Cash extends Base
{
    protected $name = 'cash';
    protected $updateTime = false;

    public function getStatusAttr($val){
        $status = [
            1 => '<span style="color:red">待审核</span>', 
            2 => '<span style="color:green">已通过</span>', 
            3 => '<span style="color:#ccc">已驳回</span>'
        ];

        return $status[$val];
    }
}